package com.dfiov.cloud.msmtools.contant;

public enum ResultStatusCode {
	/**
	 * 
	 */
	// 错误码 12066001 - 12066999
	// 参数类别错误 12066001 - 12066099
	// 解析类别错误 12066100 - 12066199
	// 网络类别错误 12066200 - 12066299

	SUCCESS(0, "success"),
	PARAM_ERR(1001,"Params Error"),
	SYSTEM_ERR(1002, "System Error"),
	PARAM_UNABLE_NULL(12066001,"param unable to be null"),
	PARAM_TYPE_ERR(12066002,"param type error"),
	PARAM_LENGTH_MORE(12066003,"param is too long"),
	PARAM_CHECK_ERROR(12066005,"check params error, check annotation checkNull"),
	SYS_UNKNOW_TOKEN_ENDTIME(12066006,"系统无法获取token有效时间"),
	NET_REQUEST_ERR(12066201,"net request error"),
	NET_RESPONSE_PARAM_ERROR(12066202,"response param error"),
	NET_RESOURCE_RETURN_ERROR(12066203,"Remote interface request ok, but result error"),
	NET_REQUEST_USERINFO_ERROR(12066204,"请求用户信息失败"),
	NET_SEND_SMS_ERROR(12066205,"短信通知失败"),
	NET_REQUEST_USER_MOBILE_ERROR(12066206,"获取用户手机号失败"),
	NET_REQUEST_GET_TOKEN_ERROR(12066207,"获取流量商城token失败"),
	NET_REQUEST_UNICOM_ERROR(12066208,"联通返回数据异常"),
	SIM_IS_NOT_RIGHT_AUTHPRITY(12066301,"该SIM卡不能订购该补充套餐"),
	TASKTEMPLATE_IS_NOT_EXIST(12066302,"该任务模板不存在"),
	//阈值提醒
	SIM_NOT_BIND_VEHICLE_ERR(-10086,"vin码为空，Sim卡与车可能未完成绑定"),
	DEVICE_NOT_BIND_ACCOUNT_ERR(-10087,"设备ID与账户ID可能未完成绑定"),
	USER_ACCOUNT_NOT_EXISTS_ERR(-10088,"用户账户不存在"),
	USER_PHONE_NOT_EXISTS_ERR(-10088,"用户手机号不存在"),
	/**
	 * 订单已完成过充值
	 */
	COMPLETE_ORDER_ERROR(12066303,"订单已完成,当前无效"),
	PACKAGE_IS_NOT_EXIST(12066304,"套餐未配置"),
	SERIESID_UNAVAILABLE(12066305,"车系ID无法获取到"),
	CREATE_UNICOM_SIGN_FAIL(12066306,"生成联通tms签名失败"),

	PACKAGE_CODE_NOT_EXIST(12066399, "套餐包代码不存在"),

	/**
	 * 调用联通接口
	 */
	UNICOM_HTTP_REQUEST_ERROR(12066400,"调用联通接口失败"),

	;

	private int code;
	private String msg;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	private ResultStatusCode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

}
